function show_name()
{
  console.log("test");
}

function relocate_name()
{
  console.log("test2");
}

function close_name()
{
  console.log("test3");
}


function test()
{
  var elems = document.getElementsByTagName('*'), i;
  for (i in elems) {
      if((' ' + elems[i].className + ' ').indexOf(' ' + "distro_collection_name" + ' ')
              > -1) {
          elems[i].addEventListener("mouseover", show_name, false);
          elems[i].addEventListener("mousemove", relocate_name, false);
          elems[i].addEventListener("mouseout", close_name, false);
      }
  }
}

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(test);
